package cn.wolfcode.mapper;

import cn.wolfcode.domain.Employee;
import cn.wolfcode.domain.Permission;
import cn.wolfcode.qo.QueryObject;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EmployeeMapper extends BaseMapper<Employee> {

    Employee selectByUername(String username);

    //查是否有这用户
    Employee login(@Param("username") String username, @Param("password") String password);

    //根据员工id查询对应的权限
    List<String> selectByEidPermission(@Param("eid") Long id);
}